package mockup;

/**
 * This is an invite for a meeting and is a extended
 * class of Message
 * @author daniel
 */
public class InviteMockup extends MessageMockup {

	public static final int ANSWER_UNKOWN = 0;
	public static final int ANSWER_YES = 1; 
	public static final int ANSWER_NO = 2; 
	
	private int answer;
		
	public InviteMockup(int id, int meetingID) {
		super(id, meetingID);
		/* When creating the invite the answer is set to unknown */
		answer = InviteMockup.ANSWER_UNKOWN;
	}

	/**
	 * For rejecting the meeting
	 */
	public void reject() {
		answer = InviteMockup.ANSWER_NO;
	}
	
	/**
	 * For accepting the meeting
	 */
	public void accept() {
		answer = InviteMockup.ANSWER_YES;
	}
	
	public int getAnswer() {
		return answer;
	}
	
	public void setAnswer(int answer) {
		this.answer = answer;
	}
}
